package com.example.order.exception;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description TODO
 * @Author JFeng
 * @Date 2024/5/18
 */

public class BlockExceptionHandler {
    public static Object blockHandlerGetById(String id, BlockException e) {
        Map<Object, Object> map = new HashMap<>();
        map.put("message", "热点规则流控，id = " + id);
        return map;
    }
}
